//
//  SearchListCell.m
//  Grammar
//
//  Created by Rick on 6/28/13.
//
//

#import "SearchListCell.h"

@interface SearchListCell()


@end

@implementation SearchListCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellTextWithSearchString:(NSString*)searchString
{
    _titleLabel.text = searchString;
    
    if (_index %2) {
        self.contentView.backgroundColor = [UIColor colorWithRed:234/255.0 green:228/255.0 blue:218/255.0 alpha:1.0];
    }else {
        self.contentView.backgroundColor = [UIColor colorWithRed:217/255.0 green:208/255.0 blue:195/255.0 alpha:1.0];
    }
}

- (void)dealloc {
    [_titleLabel release];
    [super dealloc];
}
@end
